package com.pinganfu.tesla.iwallet.bean;

public class BankCard {
	private String bankName;
	private String cardNo;
	private String cardType;

	public String getBankName() {
		return bankName;
	}
	public void setBankName(String bankName) {
		this.bankName = bankName;
	}
	public String getCardNo() {
		return cardNo;
	}
	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}
	public String getCardType() {
		return cardType;
	}
	public void setCardType(String cardType) {
		this.cardType = cardType;
	}

	public String getCardTypeDesc() {
		if (cardType.equalsIgnoreCase("D")) {
			return "贷记卡";
		} else if (cardType.equalsIgnoreCase("C")) {
			return "信用卡";
		} else {
			return " ";
		}
	}

	public BankCard(String bankName, String cardNo, String cardType) {
		this.bankName = bankName;
		this.cardNo = cardNo;
		this.cardType = cardType;
	}
}
